from app import app
from typing import Dict
from tortoise.contrib.sanic import register_tortoise
settings: Dict[str, any] = {

}

app.update_config(settings)

register_tortoise(
    app=app, db_url='mysql://root:qq^ju8li7.%mm@localhost:3306/bd-exam', modules={'models': ['database']})

if __name__ == '__main__':
    app.run(host='0.0.0.0', port=8080, debug=True, access_log=False)
